Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix ip is IsUnspecified #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

day253
Copy link

@day253 day253 commented Jun 29, 2024

What type of PR is this?

fix: A bug fix

What this PR does / why we need it (English/Chinese):

When the host machine where the current instance is located does not support IPv6 addresses, the instance registration will use the IPv4 default address "0.0.0.0" for registration, resulting in the registered instance being "0.0.0.0" instead of the actual IP address.

// IsUnspecified reports whether ip is an unspecified address, either the IPv4 address "0.0.0.0" or the IPv6 address "::".

Which issue(s) this PR fixes:

@day253
Copy link
Author

day253 commented Jul 1, 2024

It seems that this unit test won't pass even if the code remains unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant